package com.game.simplegame;

import com.game.simplegame.creature.WorkMan;
import com.game.simplegame.world.World;

/**
 * Created by Administrator on 2017-04-18.
 */
public class main {
    public static void main(String args[]){
        World world = new World();
        long time = System.currentTimeMillis();
        world.add(new WorkMan(world));
        while(true){
            long dt = System.currentTimeMillis() - time;
            time = System.currentTimeMillis();
            world.update(dt);
            try{
                Thread.sleep(30);
            }catch (InterruptedException e){
                e.printStackTrace();
            }
        }
    }
}
